
package com.dream.testtubebaby.data.chat;

public class ChatMsg {
    private final long id;
    private final long fromUserId;
    private final String fromUserName;
    private final long toUserId;
    private final String toUserName;
    private final String messasge;
    private final long postTime;
    private long groupid;
    private String photo_url;
    private String audio_url;
    private long audioPlayTimeLength;
    
    public ChatMsg(long id, long fromUserId, String fromUserName,
    		long toUserId, String toUserName, String messasge, long postTime, long groupid) {
        this.id = id;

        this.fromUserId = fromUserId;
        this.fromUserName = fromUserName;
        this.toUserId = toUserId;
        this.toUserName = toUserName;
        this.messasge = messasge;
        this.postTime = postTime;
        this.groupid = groupid;
    }

    public String getPhoto_url() {
		return photo_url;
	}

	public void setPhoto_url(String photo_url) {
		this.photo_url = photo_url;
	}
	
    public String getAudio_url() {
		return audio_url;
	}

	public void setAudio_url(String audio_url) {
		this.audio_url = audio_url;
	}

	public long getGroupid() {
		return groupid;
	}

	public void setGroupid(long groupid) {
		this.groupid = groupid;
	}

	public long getFromUserId() {
        return fromUserId;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public long getId() {
        return id;
    }

    public String getMessasge() {
        return messasge;
    }

    public long getPostTime() {
        return postTime;
    }
    
    public long getAudioPlayTimeLength() {
        return audioPlayTimeLength;
    }
    
    public void setAudioPlayTimeLength(long audioPlayTimeLength) {
        this.audioPlayTimeLength = audioPlayTimeLength;
    }

    public long getToUserId() {
        return toUserId;
    }

    public String getToUserName() {
        return toUserName;
    }
}
